/**
 * 
 * @author Travis C lynch <travisclynch@student.midlandstech.edu>
 * @version Feb 14 2012
 * <p>
 * <b>Instructions:</b><br>
 * Define a class named OrderedListArray that extends the IntegerListArray class (attached).  
 * Override the add(Integer elt) method so that it will add the new element in the correct numerical order.  
 * Also, for any method that will cause the list not to be in the correct order, 
 * override that method with a method that simply prints a message saying that the method is not implemented.
 * <p>
 * <b>Discription:</b><br>
 * A method that exstends the IntagerListArray
 * 
 */
public class OrderedListArray extends IntegerListArray {
	public OrderedListArray() {
		super();
	}
	/**
	 * Mustator Method
	 * @param elt Description Intager to be added inside array
	 */
	public void add(Integer elt) {
		int i; //counter varable for index
		for(i=0;(i<listSize) && (theArray[i].compareTo(elt) < 0);i++){
		;
		}
		super.addAt(elt, i);		
	}
	//Depreceated methods
	public void addFirst(Integer elt) {
		System.out.println("Function disabled!");
	}
	public void fillInHoleAt(int idx) {
		System.out.println("Function disabled!");
	}
}
